import request from '@/utils/request'

// 查询借款产品信息列表
export function listInfo(query) {
    return request({
        url: '/business/ProductDeferred/getlist',
        method: 'get',
        params: query
    })
}

// 查询借款产品信息详细
export function getInfo(data) {
    return request({
        url: '/business/ProductDeferred/getone/',
        method: 'post',
        data: data
    })
}

// 新增借款产品信息
export function addInfo(data) {
    return request({
        url: '/business/ProductDeferred/insert',
        method: 'post',
        data: data
    })
}

// 修改借款产品信息
export function updateInfo(data) {
    return request({
        url: '/business/ProductDeferred/updateone',
        method: 'post',
        data: data
    })
}

// 删除借款产品信息
export function delInfo(id) {
    return request({
        url: '/business/ProductDeferred/' + id,
        method: 'delete'
    })
}

// 导出借款产品信息
export function exportInfo(query) {
    return request({
        url: '/bizsys/info/export',
        method: 'get',
        params: query
    })
}
